home *** CD-ROM | disk | FTP | other *** search
- 102
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- SetPrinter
- --- RECORDSEPARATOR ---
- Platform:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Description:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baSetPrinter changes settings for the default printer.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Usage:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Result = baSetPrinter( Info, Data )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Arguments:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- String, any (Xtra) or string (UCD)
- --- RECORDSEPARATOR ---
- Info is the type of information to set.
- --- RECORDSEPARATOR ---
- Can be
- --- RECORDSEPARATOR ---
- "default"
- --- RECORDSEPARATOR ---
- set the current default printer (string)
- --- RECORDSEPARATOR ---
- "orientation"
- --- RECORDSEPARATOR ---
- the orientation of the default printer (string)
- --- RECORDSEPARATOR ---
- "paper"
- --- RECORDSEPARATOR ---
- the selected paper size of the default printer (string)
- --- RECORDSEPARATOR ---
- "papername"
- --- RECORDSEPARATOR ---
- the name of
- --- RECORDSEPARATOR ---
- the selected paper of the default printer (string)
- --- RECORDSEPARATOR ---
- "copies"
- --- RECORDSEPARATOR ---
- the number of copies to print (integer - Xtra, string - UCD)
- --- RECORDSEPARATOR ---
- Data is the data to set - the format depends on the info type. The UCD version will
- --- RECORDSEPARATOR ---
- always be a string.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Returns:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Integer
- --- RECORDSEPARATOR ---
- Returns 1 if successful, otherwise 0.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Examples:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Director:
- --- RECORDSEPARATOR ---
- set ok = baSetPrinter( "default", "Epson 400 Stylus Color" )
- --- RECORDSEPARATOR ---
- set ok = baSetPrinter( "copies", 2 )
- --- RECORDSEPARATOR ---
- Authorware:
- --- RECORDSEPARATOR ---
- ok := baSetPrinter( "orientation", "landscape" )
- --- RECORDSEPARATOR ---
- ok := baSetPrinter( "copies", "2" )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Notes
- --- RECORDSEPARATOR ---
- :
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- The "default" option only requires the name of the printer, not the port or driver.
- --- RECORDSEPARATOR ---
- The "paper" option uses the same names as the baPrinterInfo "paper".
- --- RECORDSEPARATOR ---
- The "papername" option uses the same names as the baPrinterInfo "papername".